function addUser(obj){
    var form = document.getElementById('form');
    console.log("进入dduser");
    var input = document.createElement("input");
    input.setAttribute("type", 'hidden');
    input.setAttribute("name", 'userid');
    input.setAttribute("value", obj.id);
    form.appendChild(input);
    form.action="/admin/toInsertUser"
    form.submit();
}
function insertUser(obj){
    var form = document.getElementById('form');
    var input1 = document.createElement("input");
    input1.setAttribute("type", 'hidden');
    input1.setAttribute("name", 'userid');
    input1.setAttribute("value", document.getElementById('userid').value);
    console.log("1")
    var input2 = document.createElement("input");
    input2.setAttribute("type", 'hidden');
    input2.setAttribute("name", 'username');
    input2.setAttribute("value", document.getElementById('username').value);
    console.log("2")
    var input3 = document.createElement("input");
    input3.setAttribute("type", 'hidden');
    input3.setAttribute("name", 'usersex');
    input3.setAttribute("value", document.getElementById('usersex').value);
    console.log("3")
    var input4 = document.createElement("input");
    input4.setAttribute("type", 'hidden');
    input4.setAttribute("name", 'userphone');
    input4.setAttribute("value", document.getElementById('userphone').value);
    console.log(document.getElementById('userphone').value)
    var input5 = document.createElement("input");
    input5.setAttribute("type", 'hidden');
    input5.setAttribute("name", 'usearddress');
    input5.setAttribute("value", document.getElementById('usearddress').value);
    console.log("5")
    form.appendChild(input1);
    form.appendChild(input2);
    form.appendChild(input3);
    form.appendChild(input4);
    form.appendChild(input5);
    form.action="/admin/insertUser"
    form.submit();
}
